<%@ page import="edu.auctionmart.Feedback" %>



<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'leftBy', 'error')}">
	<label for="leftBy">
		<g:message code="feedback.leftBy.label" default="Left By" />
	</label>
	<g:textField id="leftBy" name="leftBy.id" value="${feedbackInstance?.leftBy?.username}" readonly="true"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'leftFor', 'error')}">
	<label for="leftFor">
		<g:message code="feedback.leftFor.label" default="Left For" />
	</label>
	<g:textField name="leftFor.id" value="${feedbackInstance?.leftFor?.username}" readonly="true"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'auction', 'error')}">
	<label for="auction">
		<g:message code="feedback.auction.label" default="Auction" />
	</label>
	<g:textField name="auction.id" value="${feedbackInstance?.auction?.auctionTitle}" readonly="true"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'availability', 'error')} ">
	<label for="availability">
		<g:message code="feedback.availability.label" default="Availability" />
		
	</label>
	<g:field type="number" name="availability" value="${fieldValue(bean: feedbackInstance, field: 'availability')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'accuracy', 'error')} ">
	<label for="accuracy">
		<g:message code="feedback.accuracy.label" default="Accuracy" />
		
	</label>
	<g:field type="number" name="accuracy" value="${fieldValue(bean: feedbackInstance, field: 'accuracy')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'communication', 'error')} ">
	<label for="communication">
		<g:message code="feedback.communication.label" default="Communication" />
		
	</label>
	<g:field type="number" name="communication" value="${fieldValue(bean: feedbackInstance, field: 'communication')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'overallRating', 'error')} ">
	<label for="overallRating">
		<g:message code="feedback.overallRating.label" default="Overall Rating" />
		
	</label>
	<g:field type="number" name="overallRating" value="${fieldValue(bean: feedbackInstance, field: 'overallRating')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feedbackInstance, field: 'comment', 'error')} ">
	<label for="comment">
		<g:message code="feedback.comment.label" default="Comment" />
		
	</label>
	<g:textField name="comment" maxlength="150" value="${feedbackInstance?.comment}"/>
</div>
